package edu.unh.sustain;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class ScheduleActivity extends Activity {

	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
	    super.onCreate(savedInstanceState);
	    setContentView(R.layout.schedule);
	    
	    Button cc = (Button) findViewById(R.id.campusconnector);
	    cc.setOnClickListener(new View.OnClickListener() {
            public void onClick(View view) {
                Intent myIntent = new Intent(view.getContext(), CampusConnectorActivity.class);
                startActivityForResult(myIntent, 0);
            }
        });
	    
	    Button schedules3 = (Button) findViewById(R.id.route3);
	    schedules3.setOnClickListener(new View.OnClickListener() {
            public void onClick(View view) {
                Intent myIntent = new Intent(view.getContext(), Route3Activity.class);
                startActivityForResult(myIntent, 0);
            }
        });
	    
	    Button schedules4 = (Button) findViewById(R.id.route4);
	    schedules4.setOnClickListener(new View.OnClickListener() {
            public void onClick(View view) {
                Intent myIntent = new Intent(view.getContext(), Route4Activity.class);
                startActivityForResult(myIntent, 0);
            }
        });
	    
	    Button schedules5 = (Button) findViewById(R.id.route5);
	    schedules5.setOnClickListener(new View.OnClickListener() {
            public void onClick(View view) {
                Intent myIntent = new Intent(view.getContext(), Route5Activity.class);
                startActivityForResult(myIntent, 0);
            }
        });
	}
}
